<template>
	<view>
		<view>
			<uni-card :title="conference.conferencename">
				
				<view style="background-color: #6c76f4; width: 50px;border-radius:5px;float: left;margin: -45px 0px 30px 120px;">
					<text style="color: #fff;margin-left: 10px;">{{conference.conferencetype == 1?"空闲":"使用" }}</text>
				</view>
				
				<view style="clear:both">
					<text class="uni-body text1">会议室地址：</text>
					<text class="uni-body text2">{{conference.address}}</text>
				</view>
		
		
			</uni-card>
		</view>
	</view>
</template>

<script>
	export default {
		onLoad: function(option) {
			console.log("接收到的参数" + option.cid);
			this.conference.cid = option.cid

		},
		data() {
			return {
				conference: {}
			}
		},
		created() {
			console.log("接收到的参数" + this.conference.cid);
			uni.request({
				url: "http://localhost:8007/conference/conference/getIdConference/"+this.conference.cid,
				method: 'get',
				success: (res) => {
					console.log(res)
					this.conference = res.data.data.c

					console.log(res.data.data.c)
				}
			})
		},
		methods: {

		}
	}
</script>

<style>

</style>
